package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"house123/B/api/internal/config"
	"house123/C/srv/house"
	"house123/C/srv/houseclient"
)

type ServiceContext struct {
	Config   config.Config
	HouseSrC house.HouseClient
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		HouseSrC: houseclient.NewHouse(zrpc.MustNewClient(c.HouseSrC)),
	}
}
